<{extends file='layout_uc.html'}>
<{block name='body'}>
    <div class="uc_title m_10">
        <label class="current"><span>短消息</span></label>
    </div>
    <table class="list_table m_10" width="100%" cellpadding="0" cellspacing="0">
        <col />
        <col width="160px" />
        <col width="120px" />
        <col width="120px" />
        <thead><tr><th>标题</th><th>发送时间</th><th>状态</th><th>操作</th></tr></thead>
		<tbody>
		                                        <tr id='show_msg' class="show" style="display:none">
            	<td colspan="4"><i class="close f_r" onclick='$(this).parent().parent().css("display","none")'></i><b class="orange">详细内容：</b><p class="gray indent mt_10" id='content'></p></td>
            </tr>
        </tbody>
        <tfoot><tr><td colspan="4" class="t_l"><div class='pages_bar'><a href='/index.php?controller=ucenter&action=message&page=1' >首页</a><a href='/index.php?controller=ucenter&action=message&page=0' >尾页</a><span>当前第1页/共0页</span></div></td></tr></tfoot>
    </table>

<script type="text/javascript">

function show_msg(obj,content,id)
{
    $('#show_msg').css('display','').insertAfter($(obj).parent().parent());

    $('#show_msg #content').text(content);
    $.get("/index.php?controller=ucenter&action=message_read",{id:id},function(data){
    if(data == 1)
    {
    	$("#msg_id_"+id).parent().addClass('bold');
    	$("#msg_id_"+id).html('已读');
    }
    });
}
</script>
	<{/block}>